package com.xoa.dao.workflow;

import com.xoa.model.workflow.FlowRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface FlowAssociationSetMapper {
    //新建流程模块关联应用
    int newFlowModelAssociationSet(Map<String,Object>map);
    //查询流程模块关联应用列表按照当前流程查询列表
    List<FlowRelation>queryFlowModelAssociationSet(Map<String,Object>map);
    //编辑流程模块关联应用
    int editFlowModelAssociationSet(Map<String,Object>map);
    //编辑模块关联应用
    int editModelAssociationSet(Map<String,Object>map);
    //删除流程模块关联应用
    int deleteFlowModelAssociationSet(@Param("id") Integer id);
    //查询模块数据库表字段
    List<FlowRelation> queryModelAssociationField(@Param("tableName")String tableName);
    //新建模块关联应用
    int newModelAssociationSet(Map<String,Object>map);
    //查询某条流程的关联设置
    List<FlowRelation>  queryFlowAssociationSet(@Param("flowId") Integer flowId);
    //查询满足条件的流程
    List<Integer> queryFlowDataRunId(Map<String,Object>map);

    int newModelAssociationSetType(Map<String,Object>map);

    //查询流程或模块
    List<FlowRelation> queryFlowModelAssociationSetByType(Map<String,Object> map);

    List<FlowRelation> queryModelAssociationRelation(Map<String,Object> map);

    String queryModelTableResult(Map<String,Object> map);

}